<style type="text/css">
  .btn_rd{ color: #FFF; background: #CDA60E; text-align: center; text-decoration: none; padding: 4px 6px 4px 6px; margin-right: 4px;}
</style>
<!-- <div class="list-search">
<form action="" method="get">
<input type="text" name="keyword" class="search-ipt" placeholder="请输入关键字" value="{$keyword}">
<button type="submit" class="search-btn">&nbsp;</button>
</form>
</div> -->
<table class="search">
	<tbody>
		<tr>
			<td style="width:80px;">状态：</td>
			<td>
      	<a href="javascript:;" onclick="change('status','0');" class="<if condition="$status eq 0 ">current</if>" >全部</a>
	  		<a href="javascript:;" onclick="change('status','1');" class="<if condition="$status eq 1 ">current</if>" >未处理</a>
      	<a href="javascript:;" onclick="change('status','2');" class="<if condition="$status eq 2 ">current</if>" >已处理</a>
      	<a href="javascript:;" onclick="change('status','3');" class="<if condition="$status eq 3 ">current</if>" >已完成</a>
			</td>
		</tr>
    <tr>
      <td>关键搜索：</td>
      <td>
        <form action="" method="get">
        <input type="text" name="keyword" class="input-m" placeholder="请输入关键字" value="{$keyword}">
        <button type="submit" class="button-green">查询</button>
        </form>
      </td>
    </tr>
	</tbody>
</table>
<table class="list">
		<thead>
			<tr>
        <th width="20px"><img src="/Public/image/mail1.jpg"></th>
        <th width="60px">发起人</th>
        <th>主题</th>
        <th width="50px">姓名</th>
        <th width="100px">手机</th>
        <th width="100px">快递单号</th>
        <th width="150px">询单时间</th>
        <th width="50px">状态</th>
        <th width="80px">操作</th>
      </tr>
		</thead>
  <tbody id="name">
		<foreach name="list" item="message">
			<tr>
         <td><if condition="$message.isNew eq true"><img src="/Public/image/mail2.jpg"><else /><img src="/Public/image/mail1.jpg"></if></td>
         <td>{$message.sendName}</td>
         <td><a href="{:U(MODULE_NAME.'/Message/visaProcessDeal',array('id'=>$message['id']))}"><strong>{$message.title|subtext=50}</strong></a></td>
         <td>{$message.customerName}</td>
         <td>{$message.customerMobile}</td>
         <td>{$message.expressSingle}</td>
         <td>{$message.sendTime}</td>
         <td>{$message.status}</td>
         <td><a href="{:U(MODULE_NAME.'/Message/visaProcessDeal',array('id'=>$message['id']))}">查看</a></td>
       </tr>
    </foreach>
  </tbody>
</table>
<div class="page" style="clear: both;">{$page}</div>
<input type="hidden" id="status" value="{$status}">
<script type="text/javascript">
function change($id,$name)
{
    $("#"+$id).val($name);
    var url =  '?';
    url += 'status='+$("#status").val();
   
    window.location.href = '{:U(MODULE_NAME.'/Message/visaReceive')}'+url;
};
</script>